package com.g17.virtualpetbackend.service;

import com.g17.virtualpetbackend.entity.Case;
import com.g17.virtualpetbackend.repo.CaseRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CaseService {
    @Autowired
    private CaseRepository caseRepository;

    public List<Case> getCase(String disease_name){
        return caseRepository.getCaseByDisease_name(disease_name);
    }
}
